package testes;

import static org.junit.Assert.*;

import org.junit.Test;

public class TestPatTest {

	@Test
	public void test() {
	TestPat t=	new TestPat();
	assertNotSame(-1, t.pat("ola".toCharArray(), "ol".toCharArray()));
	
	}
	
	@Test
	public void test1() {
	TestPat t=	new TestPat();
	assertNotSame(-1, t.pat("ola".toCharArray(), "ola".toCharArray()));
	
	}
	@Test
	public void test2() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), "alo".toCharArray()));
	
	}
	@Test
	public void test3() {
	TestPat t=	new TestPat();
	assertNotSame(-1, t.pat("ola".toCharArray(), "la".toCharArray()));
	}
	@Test
	public void test4() {
	TestPat t=	new TestPat();
	assertNotSame(-1, t.pat("olaca".toCharArray(), "la".toCharArray()));
	}
	@Test
	public void test5() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), "cola".toCharArray()));
	}
	@Test
	public void test6() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), "olac".toCharArray()));
	}
	public void test7() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("olca".toCharArray(), "ola".toCharArray()));
	}
	@Test
	public void test8() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ocla".toCharArray(), "ola".toCharArray()));
	}
	@Test
	public void test9() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("".toCharArray(), "ola".toCharArray()));
	}
	@Test
	public void test10() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), " ".toCharArray()));
	}
	@Test
	public void test11() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), "".toCharArray()));
	}
	@Test
	public void test112() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("".toCharArray(), "ola".toCharArray()));
	}
	@Test
	public void test12() {
	TestPat t=	new TestPat();
	assertNotSame(-1, t.pat("ola".toCharArray(), "l".toCharArray()));
	}
	@Test
	public void test13() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), "c".toCharArray()));
	}
	@Test
	public void test14() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat(null, "c".toCharArray()));
	}
	@Test
	public void test15() {
	TestPat t=	new TestPat();
	assertEquals(-1, t.pat("ola".toCharArray(), null));
	}
	@Test
	public void test16() {
	TestPat t=	new TestPat();
	assertNotSame(-1, t.pat("222".toCharArray(), "22".toCharArray()));
	}
	public void test17() {
		TestPat t=	new TestPat();
		assertNotSame(-1, t.pat("222".toCharArray(), "2".toCharArray()));
		}
	public void test18() {
		TestPat t=	new TestPat();
		assertNotSame(-1, t.pat("222".toCharArray(), "222".toCharArray()));
		}
	public void test19() {
		TestPat t=	new TestPat();
		assertNotSame(-1, t.pat("22".toCharArray(), "22".toCharArray()));
		}
	public void test20() {
		TestPat t=	new TestPat();
		assertNotSame(-1, t.pat("2".toCharArray(), "2".toCharArray()));
		}
	public void test21() {
		TestPat t=	new TestPat();
		assertEquals(-1, t.pat("l".toCharArray(), "p".toCharArray()));
		}
	public void test22() {
		TestPat t=	new TestPat();
		assertNotSame(-1, t.pat("l".toCharArray(), "L".toCharArray()));
		}
	public void test23() {
		TestPat t=	new TestPat();
		assertNotSame(-1, t.pat("L".toCharArray(), "l".toCharArray()));
		}
	public void test24() {
		TestPat t=	new TestPat();
		assertEquals(-1, t.pat("L".toCharArray(), "L".toCharArray()));
		}
	public void test25() {
		TestPat t=	new TestPat();
		assertEquals(-1, t.pat("ola".toCharArray(), "Lola".toCharArray()));
		}
	public void test26() {
		TestPat t=	new TestPat();
		assertEquals(-1, t.pat("ola".toCharArray(), "olaL".toCharArray()));
		}

}
